@use 'devui-theme/styles-var/devui-var.scss' as *;

.content-card {
  margin: 8px;
  overflow: hidden;
  background-color: $devui-base-bg;
  border-radius: $devui-border-radius-card;
  box-shadow: $devui-shadow-length-base $devui-light-shadow;
  height: 400px;
  transition: transform 0.3s, box-shadow 0.3s;

  &:hover {
    transform: translateY(-5px);
    box-shadow: $devui-shadow-length-base $devui-shadow;
  }
}

.content-card-sm {
  margin: 8px;
  overflow: hidden;
  background-color: $devui-base-bg;
  border-radius: $devui-border-radius-card;
  box-shadow: $devui-shadow-length-base $devui-light-shadow;
  height: 192px;
  transition: transform 0.3s, box-shadow 0.3s;

  &:hover {
    transform: translateY(-5px);
    box-shadow: $devui-shadow-length-base $devui-shadow;
  }
}

.dark-card {
  position: relative;
  background-image: linear-gradient(-50deg, #242222, #555454);
  border-radius: 16px;
  box-shadow: $devui-shadow-length-base $devui-light-shadow;
  padding: 20px;
  overflow: hidden !important;
}

.grade-number {
  display: inline-block;
  font-size: 26px;
  vertical-align: text-top;
  background-image: linear-gradient(to right, $devui-yellow-20, $devui-yellow-80);
  background-clip: text;
  color: transparent;
  font-weight: bold;
  margin-right: 20px;
}

.radar-descript {
  position: absolute;
  top: 24%;
  right: 16px;
  width: 20%;
  color: #ced1db;
  padding-right: 16px;
  font-size: 14px;
  line-height: 22px;

  &-title {
    color: #ffffff;
    line-height: 22px;
    margin: 0 8px;
    font-weight: bold;
  }
}

.indicator-card {
  padding: 24px;
  background: $devui-base-bg;
  display: flex;
  border-radius: 16px;
  width: 100%;
  height: 100%;

  .indicator-content {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
    font-size: 12px;

    .indicator-content-item {
      margin-bottom: 4px;
      padding: 4px 0;
    }
  }

  .indicator-charts {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
  }
}

.trend-number {
  line-height: 1em;
  font-weight: 600;
  color: $devui-text;
  font-size: 24px;
}

.chart-card {
  box-shadow: $devui-shadow-length-base $devui-light-shadow;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  position: relative;
  background-color: $devui-base-bg;

  .card-title {
    font-size: 14px;
    line-height: 22px;
    font-weight: 700;
  }

  .card-subtitle {
    font-size: 12px;
    line-height: 18px;
    margin-top: 4px;
    color: $devui-aide-text-stress;
  }

  .card-content {
    flex: 1;
    margin-top: 12px;
  }
}

@media (max-width: 1700px) {
  .radar-descript {
    display: none;
  }
}
